package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.TradeMapper;
import com.zch.dao.model.Trade;
import com.zch.dao.model.TradeExample;
import com.zch.daoEx.TradeMapperEx;
import com.zch.daoEx.model.TradeEx;

@Service
public class TradeService {
	@Autowired
	private TradeMapper tradeMapper;
    @Autowired
    private TradeMapperEx tradeMapperEx;

	public int countByExample(TradeExample example) {
		return this.tradeMapper.countByExample(example);
	}

	public Trade selectByPrimaryKey(String id) {
		return this.tradeMapper.selectByPrimaryKey(id);
	}

	public List<Trade> selectByExample(TradeExample example) {
		return this.tradeMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.tradeMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Trade record) {
		return this.tradeMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Trade record) {
		return this.tradeMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(TradeExample example) {
		return this.tradeMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(Trade record, TradeExample example) {
		return this.tradeMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(Trade record, TradeExample example) {
		return this.tradeMapper.updateByExample(record, example);
	}

	public int insert(Trade record) {
		return this.tradeMapper.insert(record);
	}

	public int insertSelective(Trade record) {
		return this.tradeMapper.insertSelective(record);
	}

    public List<TradeEx> selectList(Map<String, Object> map) {
        return this.tradeMapperEx.selectList(map);
    }

    public List<TradeEx> selectAppList() {
        return this.tradeMapperEx.selectAppList();
    }

}
